#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "setvalue.h"

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

    void paintEvent(QPaintEvent *e);

    void mousePressEvent(QMouseEvent *e);

    void mouseMoveEvent(QMouseEvent *e);

    void setWinProc();

    void setRightClickMenu();

private slots:
    void on_MainWindow_customContextMenuRequested(const QPoint &pos);

private:
    Ui::MainWindow *ui;
    QPoint m_StartPoint;
    QAction* m_winRghtClick_Restart;
    QAction* m_winRghtClick_SetValue;
    QAction* m_winRghtClick_Start;
    QAction* m_winRghtClick_Exit;
    QMenu* m_winMenu;
    SetValue* SetValueFrm;
    qint32 m_Prog_Max;
    qint32 m_current;
    QTimer* timer;
};
#endif // MAINWINDOW_H
